SOCKETS.OPTIONS_SET Function
The SOCKETS object is deprecated and may be removed in a future release. Use INET::Socket instead.
Syntax
V options_set(C options)
Arguments
- options
One of the options listed below.
- Argument
- Description
- "-L"
Linger
- "L"
Linger
- "K"
Keep alive
- "R"
Re-use address
- "N"
Do not route
- "-D"
Do not delay (disable TCP/IP wait)
- "D"
Delay
- "X"
Debug
- "I=#"
Internal input buffer controls
- "O=#"
Internal output buffer controls
- "T=#"
Time out in milliseconds
- "TS=#"
Send time out in milliseconds
- "TR=#"
Receive time out in milliseconds
Description
Set options ([-]L-Linger K-Keep Alive R-Reuse Address N-Don't route [-]D-elay X-Debug - I=#/O=# - internal input output buffer controls T=# TS=# TR=# timout in milliseconds for timeout on send/receive or timeout [S]end,[R]ecieve ).
Discussion
The .OPTIONS_SET() method sets the options on the active socket.
Example
s.options_set("-L") ' don;t linger s.options_set("L") ' linger s.options_set("K") ' keep alive s.options_set("R") ' reuse address s.options_set("-D") ' do not delay (disable nagle TCPIP wait) s.options_set("D") ' delay s.options_set("T=500") ' timeout after 500 millisecs - i.e. 1/5 a second
See Also